package OOP;
import java.lang.Math;
public class Car2 {

    public boolean run(){
        double random = Math.random();
        
        if(random>0.5){
            System.out.println("和姐姐去开房");
            return true;
        }else {
            System.out.println("姐姐不同意");
            return false;
        }

    }

    public static void main(String[] args) {
        Car2 car2 = new Car2();
        car2.run();
       boolean aa = car2.run();
       if(aa=true){
           System.out.println("111");
       }else {
           System.out.println("222");
       }
    }

}
